package org.example.pojo.select;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.example.configuration.CustomerDoubleSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Schema(name = "水电DAmountSelect" ,description = "水电查询对象")
public class DAmountSelect {

    @Schema(description = "房间号")
    private String apartmentId;

    @Schema(description = "人员工号")
    private String staffId;

    @Schema(description = "人员名称")
    private String staffName;

    @Schema(description = "结算日期")
    private String amountDate;

    @Schema(description = "水费")
    @JsonSerialize(using = CustomerDoubleSerialize.class)
    private Double shui;

    @Schema(description = "电费")
    @JsonSerialize(using = CustomerDoubleSerialize.class)
    private Double dian;

    @Schema(description = "热水费")
    @JsonSerialize(using = CustomerDoubleSerialize.class)
    private Double reshui;

    @Schema(description = "合计费用")
    @JsonSerialize(using = CustomerDoubleSerialize.class)
    private Double amount;

    @Schema(description = "结算月份")
    @JsonFormat(pattern="yyyy-MM",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM")
    private String month;

    @Schema(description = "当前页")
    private Integer currentPage;

    @Schema(description = "总数据数")
    private Integer pageSize;
}
